<template>
  <div class="cover">
    
    <div class="left" :style="{backgroundImage:`url(${coverImgUrl})`}" >
   
    <span class="lsthd_icon">歌单</span>
    <i class="u-earp lsthd_num">{{playCount|formatNum}}</i>
    </div>
    <div class="right">
      <div class="title">{{title}}</div>
      <div class="user">
      <img :src=portrait alt="">
      <span>{{nickname}}</span>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  props:['coverImgUrl','title','portrait','nickname','playCount'],
    filters: {
    formatNum(value) {
      return (value / 10000).toFixed(1) + "万";
    },
  },
}
</script>
<style lang="less" scoped>
.cover{
  display: flex;
  height: 185px;
  // justify-content: ;
  align-items: center;
position: relative;
 &::before{
   width: 100%;
            height: 100%;
  //  background-color: #000007;
   background-color: #3f4d4b;
            content: '';
            position: absolute;
            z-index: -1;
            filter: blur(10px);
        }
  .left{
  // background: url(https://p1.music.126.net/bQSgDY2r5xSnC_IEdf2jBQ==/109951165797255055.jpg?imageView=1&type=webp&thumbnail=253x0) no-repeat;
  margin-left: 10px;
  background-repeat:no-repeat;
  background-size: cover;
 position: relative;
  width: 150px;
  height:150px;
     span{
           position: absolute;
    z-index: 3;
    top: 10px;
    left: 0;
    padding: 0 8px;
    height: 17px;
    color: #fff;
    font-size: 9px;
    text-align: center;
    line-height: 17px;
    background-color: rgba(217,48,48,.8);
    border-top-right-radius: 17px;
    border-bottom-right-radius: 17px;
      }
      i{

        font-style: normal;
            position: absolute;
    right: 2px;
    top: 0;
    z-index: 3;
    padding-left: 15px;
    color: #fff;
    font-size: 12px;
    background-position: 0;
    background-repeat: no-repeat;
    background-size: 11px 10px;
        background-image: url();
      }
  }
  .right{
    width: 50%;
    height: 60%;
  margin-left: 20px;
  color: white;
// margin-right: 30px;
  display: flex;
  flex-direction: column;
  justify-content:space-around;
  .user{
    line-height: 30px;
       img{
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: inline;
    vertical-align: bottom;
    margin-right: 5px;
  }
  span{
    color: #dacdab;
  }
  }
  
 
  }
}
</style>